.trash-page {
  padding: 32px;
  background: #F8F6F3;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.trash-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow:
    0 20px 40px rgba(139, 69, 19, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.03) 0%, rgba(210, 105, 30, 0.03) 100%);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
}

.header-content h1 {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #CD853F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
  line-height: 1.2;
}

.header-content p {
  font-size: 18px;
  color: #8B7355;
  margin: 0;
  font-weight: 400;
  opacity: 0.9;
}

.btn-danger {
  padding: 14px 28px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-danger:hover::before {
  left: 100%;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.page-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(139, 69, 19, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.page-controls::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.02) 0%, rgba(210, 105, 30, 0.02) 100%);
  pointer-events: none;
}

.selection-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.select-all {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  color: #6c757d;
  font-weight: 500;
  transition: color 0.3s ease;
}

.select-all:hover {
  color: #8B4513;
}

.select-all input {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #8B4513;
}

.batch-actions {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.btn-primary, .btn-secondary {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #6c757d;
  border: 2px solid rgba(108, 117, 125, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(248, 249, 250, 0.95);
  border-color: #8B4513;
  color: #8B4513;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #6c757d;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.sort-select {
  padding: 10px 16px;
  border: 2px solid rgba(139, 69, 19, 0.2);
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 140px;
}

.sort-select:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.15);
  background: white;
}

.trash-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow:
    0 20px 40px rgba(139, 69, 19, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

.trash-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.01) 0%, rgba(210, 105, 30, 0.01) 100%);
  pointer-events: none;
}

.trash-items {
  display: flex;
  flex-direction: column;
}

.trash-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-bottom: 1px solid rgba(139, 69, 19, 0.08);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.item-content {
  flex: 1;
  min-width: 0;
}

.trash-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.02) 0%, rgba(210, 105, 30, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.trash-item:hover::before {
  opacity: 1;
}

.trash-item:hover {
  background: rgba(248, 249, 250, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
}

.trash-item:last-child {
  border-bottom: none;
}

.item-checkbox {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.item-checkbox input {
  cursor: pointer;
  width: 20px;
  height: 20px;
  accent-color: #8B4513;
}

.item-thumbnail {
  width: 88px;
  height: 66px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.item-thumbnail:hover {
  transform: scale(1.05);
}

.item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.thumbnail-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 8px 8px;
}

.category-icon {
  font-size: 28px;
  color: white;
  position: relative;
  z-index: 1;
}

.item-details {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.item-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  flex: 1;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.item-title:hover {
  color: #8B4513;
}

.days-left {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.item-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #6c757d;
}

.meta-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.meta-label {
  font-weight: 600;
  color: #495057;
  min-width: 60px;
}

.meta-value {
  color: #6c757d;
  flex: 1;
}

.item-size {
  font-weight: 600;
  color: #495057;
}

.item-path {
  font-style: italic;
  opacity: 0.8;
}

.item-description {
  font-size: 15px;
  color: #6c757d;
  margin: 0 0 16px 0;
  line-height: 1.5;
  opacity: 0.9;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deletion-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deleted-date {
  font-size: 13px;
  color: #6c757d;
  font-weight: 500;
}

.expiry-warning {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.expiry-warning.normal {
  background: linear-gradient(135deg, rgba(212, 237, 218, 0.9) 0%, rgba(195, 230, 203, 0.9) 100%);
  color: #155724;
  border-color: rgba(21, 87, 36, 0.2);
}

.expiry-warning.warning {
  background: linear-gradient(135deg, rgba(255, 243, 205, 0.9) 0%, rgba(254, 235, 160, 0.9) 100%);
  color: #856404;
  border-color: rgba(133, 100, 4, 0.2);
}

.expiry-warning.critical {
  background: linear-gradient(135deg, rgba(248, 215, 218, 0.9) 0%, rgba(245, 198, 203, 0.9) 100%);
  color: #721c24;
  border-color: rgba(114, 28, 36, 0.2);
}

.item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  align-items: flex-end;
  justify-content: center;
  min-width: 120px;
}

.item-actions .btn-secondary,
.item-actions .btn-danger,
.btn-restore,
.btn-delete {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

.btn-restore {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-restore::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-restore:hover::before {
  left: 100%;
}

.btn-restore:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-delete {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-delete::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-delete:hover::before {
  left: 100%;
}

.btn-delete:hover {
  background: linear-gradient(135deg, #c82333 0%, #e8590c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow:
    0 20px 40px rgba(139, 69, 19, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.02) 0%, rgba(210, 105, 30, 0.02) 100%);
  pointer-events: none;
}

.empty-icon {
  font-size: 96px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #CD853F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.empty-state h3 {
  font-size: 28px;
  font-weight: 800;
  color: #8B4513;
  margin: 0 0 16px 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.empty-state p {
  font-size: 18px;
  color: #8B7355;
  margin: 0;
  font-weight: 400;
  position: relative;
  z-index: 1;
  opacity: 0.9;
  line-height: 1.5;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #495057;
}

.modal-body {
  padding: 20px;
}

.modal-body p {
  margin: 0;
  font-size: 16px;
  color: #495057;
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 20px;
  border-top: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .trash-page {
    padding: 16px;
  }
  
  .page-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .page-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .selection-controls {
    justify-content: center;
  }
  
  .sort-controls {
    justify-content: center;
  }
  
  .trash-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .item-header {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .item-meta {
    align-items: flex-start;
  }
  
  .item-actions {
    justify-content: center;
  }
  
  .batch-actions {
    justify-content: center;
  }
}
